package com.qiyigu.itc.speech.util;

import java.util.UUID;

/**
 * 常量类
 */
public class Constant {

    /**
     * app保存sd卡里的路径
     */
    public static String appPathRela = "/qiyigu/itc/";
    public static String itcAppPackage = "com.qiyigu.itc";

    public static final int USER_MAXNUM = 3;//本地用户最多个数
    public static final int RUNCOUNT_PROMPT = 1; //运行到第几次时，软件开始有提示操作功能
    public static final int RUNTIME_SAVE_RECORD = 1 * 60; //保存记录的最小运行时间 秒
    public static final int MAX_RUNTIME = 180 * 60; //运动的最长时间 秒
    public static final int MAX_APP_COUNT = 6; //最多安装几个应用
    /**
     * 校验的最大时间 秒数，超时就退出
     */
    public static final int MAX_ADJUST_SECONDS = 180;

    /**
     * 通讯 中断的 错误码
     */
    public static final int ERROR_CODE_CONNECTED_OFF = 13;
    public final static String LANGUAGE_EN_US = "EN";//美式英语
    public final static String LANGUAGE_CH_RCH = "CN";//简体中文
    public final static String LANGUAGE_CH_TW = "TW";//繁体中文
    public static String LANGUAGE_DEFAULT = LANGUAGE_CH_RCH;//默认语言，
    public static String PASSWORD_BACKTOANDROID = "itc201709";//设置的后台密码
    //  public static String APK_PACKAGE_FILE_MANAGER = "com.mediatek.filemanager";//apk包名，本地文件管理
    public static String APK_PACKAGE_FILE_MANAGER = "com.android.rk";//apk包名，本地文件管理
    /**
     * 讯飞appKey
     */
    //   public static String XUN_FAI_APPKEY = "5a2f49f3";//讯飞appKey,leo
    public static String XUN_FAI_APPKEY = "5a309d26";//讯飞appKey
    /**
     * 公众号
     */
    public static String APK_CONFIG_DEFAULT_WX_GZH = "Nidfit健身";

    /**
     * 客服邮箱
     */
    public static String APK_CONFIG_DEFAULT_consumer_email = "service@nidfit.com.cn";
    /**
     * 文件服务器域名地址
     */
    //   public static String APK_CONFIG_DEFAULT_file_server_domain = "http://file.youzhifit.com";
    public static String APK_CONFIG_DEFAULT_file_server_domain = "http://file.nidfit.com.cn";

    public static String APK_CONFIG_DEFAULT_video_file_server_domain = "http://video.nidfit.com.cn";
    /**
     * H5域名地址
     */
    public static String APK_CONFIG_DEFAULT_h5_main_url = "http://m.nidfit.com.cn";
    /**
     * H5域名地址
     */
    public static String APK_CONFIG_DEFAULT_h5_run_record_share_part_url =
            "/h5/pages/share/runRecord.html";
    /**
     * 客服电话
     */
    public static String APK_CONFIG_DEFAULT_consumer_hotline = "13714067972";

    //SPP协议UUID
    public static final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
    /**
     * 开户服务端蓝牙设置名称
     */
    public static final String BLUETOOTH_NAME = "BtCommService";

    //时间为 2018-03-09 09:46:02
    public static final String preGenDateStr = "1520559962000";

    public static final int SHOW_MAIN_ACTIVITY_DELAY_MILL = 1000;
    /**
     * 预装app的id
     */
    public final static long[] PRE_APP_ID = {
            /**
             * 爱奇艺HD
            */
            1113,
            /**
             * 百度音乐HD
            */
            1117,
            /**
             *  酷我音乐
            */
            1127,
            /**
             * 优酷视频
            */
            1133,
            /**
             * 糗事百科
            */
            1136,
            /**
             * 今日头条
            */
            1137
    };

    /**
     * 预装的实景id
     */
    public final static long[] PRE_REALVIEW_ID = {
            5001
    };


    /**
     * handler 发消息的常量值
     */
    public static class MsgWhatConstant {
        /**
         * 开始按键
         */
        public static final int DEVICE_MSG_START = 0XF5D0E1;
        /**
         * 暂停按键
         */
        public static final int DEVICE_MSG_PAUSE = 0XF5D0E0;

        public static final int DEVICE_MSG_STOP = 0XF5D0E2;
        /**
         * 速度加1按键
         */
        public static final int DEVICE_MSG_SPEED_ADD = 0XF5D0E3;
        /**
         * 速度减1按键
         */
        public static final int DEVICE_MSG_SPEED_REDUCE = 0XF5D0E4;
        /**
         * 升降加1按键
         */
        public static final int DEVICE_MSG_SLOPE_ADD = 0XF5D0E5;
        /**
         * 升降减1按键
         */
        public static final int DEVICE_MSG_SLOPE_REDUCE = 0XF5D0E6;
        /**
         * 多媒体按键
         */
        public static final int DEVICE_MSG_MEDIA = 0XF5D0E7;
        /**
         * 声音加
         */
        public static final int DEVICE_MSG_VOICE_ADD = 0XF5D0E8;
        /**
         * 声音减
         */
        public static final int DEVICE_MSG_VOICE_REDUCE = 0XF5D0E9;
        /**
         * 前进
         */
        public static final int DEVICE_MSG_FORWARD = 0XF5D0EA;
        /**
         * 返回
         */
        public static final int DEVICE_MSG_BACK = 0XF5D0EB;
        /**
         * 自由模式
         */
        public static final int DEVICE_MSG_FREE = 0XF5D0EC;
        /**
         * 倒计模式
         */
        public static final int DEVICE_MSG_ADVANCE_GOAL = 0XF5D0ED;
        /**
         * 实景体验
         */
        public static final int DEVICE_MSG_REAL_SCENE = 0XF5D0EE;
        /**
         * 街景地图
         */
        public static final int DEVICE_MSG_STREETVIEW = 0XF5D0EF;
        /**
         * 回到主界面
         */
        public static final int DEVICE_MSG_MAIN_VIEW = 0XF5D011;
        /**
         * 程序模式
         */
        public static final int DEVICE_MSG_PROGRAM = 0XF5D012;
        /**
         * 播放 暂停
         */
        public static final int DEVICE_MSG_PLAY = 0XF5D013;
        /**
         * 上一首
         */
        public static final int DEVICE_MSG_UP = 0XF5D014;
        /**
         * 下一首
         */
        public static final int DEVICE_MSG_DOWN = 0XF5D015;
        /**
         * 心率值
         */
        public static final int DEVICE_MSG_HEART_RATE = 0XF5D101;
        /**
         * 错误码
         */
        public static final int DEVICE_MSG_ERROR = 0XF5D201;
        /**
         * 错误码 消失
         */
        public static final int DEVICE_MSG_ERROR_DISAPPEAR = 0XF5D202;
        /**
         * 速度和坡度范围 厂商号
         */
        //    public static final int DEVICE_MSG_PARAMS = 0XF5D301;
        /**
         * 设置 速度值
         */
        public static final int DEVICE_MSG_SET_SPEED = 0XF5D401;
        /**
         * 设置 坡度值
         */
        public static final int DEVICE_MSG_SET_SLOPE = 0XF5D501;
        /**
         * 完成校准升降马达
         */
        public static final int DEVICE_MSG_CHECK_MOTOR_END = 0XF5D601;


        public static final int CONTROLLER_MSG_SHOW_CONTROLLER_VIEW = 0X200201;
        public static final int CONTROLLER_MSG_START = 0X200202;
        public static final int CONTROLLER_MSG_STOP = 0X200203;
        public static final int CONTROLLER_MSG_READY_GO_TIME_CHANGED = 0X200204;
        public static final int CONTROLLER_MSG_RUN_TIME_CHANGED = 0X200205;
        public static final int CONTROLLER_MSG_RUN_TIME_STR_CHANGED = 0X200305;
        public static final int CONTROLLER_MSG_SPEED_CHANGED_USER_CHANGED = 0X200206;
        public static final int CONTROLLER_MSG_SPEED_CHANGED_AUTO = 0X200216;
        //        public static final int CONTROLLER_MSG_SPEED_ADD_SERIES = 0X210216;
//        public static final int CONTROLLER_MSG_SPEED_REDUCE_SERIES = 0X220216;
        public static final int CONTROLLER_MSG_SLOPE_CHANGED_USER_CHANGED = 0X200207;
        public static final int CONTROLLER_MSG_SLOPE_CHANGED_AUTO = 0X200217;
        public static final int CONTROLLER_MSG_HEART_CHANGED = 0X200208;
        public static final int CONTROLLER_MSG_READY_STOP_TIME_CHANGED = 0X200209;
        public static final int CONTROLLER_MSG_RUN_STATE_CHANGED = 0X20020A;
        public static final int CONTROLLER_MSG_RUN_MODEL_CHANGED = 0X20020B;
        public static final int CONTROLLER_MSG_RUN_PLAN_CHANGED = 0X20020C;
        public static final int CONTROLLER_MSG_RUN_SET_GOAL = 0X20020D;
        public static final int CONTROLLER_MSG_RUN_START_DELAYED = 0X20020E;
        public static final int CONTROLLER_MSG_CLEAN_RUN_PARAM = 0X20020F;

        /**
         * 同步配置文件数据
         */
        public static final int ASYNC_DATA_CONFIG = 0X500100;
        /**
         * 同步用户表数据
         */
        public static final int ASYNC_DATA_USER = 0X500101;
        /**
         * 同步高级程式的数据
         */
        public static final int ASYNC_DATA_ADVANCE = 0X500102;

        /**
         * 从服务器异步 获取 预装数据
         */
        public static final int SYNC_DATA_FROM_SERVER_ALL_PRE_DATE = 0X500200;
        /**
         * 从服务器同步数据 软件版本预装数据
         */
        public static final int SYNC_DATA_FROM_SERVER_UPDATE_VERSION = 0X500201;

        /**
         * 同步 当前用户的所有自己的数据
         */
        public static final int SYNC_DATA_FROM_SERVER_ALL_CUR_USER = 0X500300;
        /***
         * 开始下载任务
         */
        public static final int START_DOWNLOAD_TASK = 0X500400;
        /**
         * 获取百度地图定位信息
         */
        public static final int START_BAIDU_LOCATION_TASK = 0X500500;
        /**
         * 启动百度语音功能
         */
        public static final int START_BAIDU_AUDIO = 0X500600;
    }


    /**
     * appName = 微信,爱奇艺,百度音乐,文件管理,斗鱼直播,酷狗音乐,乐视视频,聚力视频,QQ音乐,搜狐视频,腾讯视频,天天动听
     appHandle = 打开
     changeNum= 一,二,三,四,五,六,七,八,九,十,十一,十二,十三,十四,十五,十六,十七,十八,十九,二十,二十一,二十二,二十三,二十四,加,减
     controllerControl = 开始,暂停,继续,停止,加速,减速,加坡度,减坡度
     controllerElement = 速度,坡度,音量
     hardwareName = 风扇
     controllerSwitch = 打开,关闭
     */
    /**
     * 语音识别后的常量
     */
    public static class SpeechParserConstant {
        public static final int SPEECH_CONRTOLLER_START = 0X600101;
        public static final int SPEECH_CONRTOLLER_PAUSE = 0X600102;
        public static final int SPEECH_CONRTOLLER_RESTART = 0X600103;
        public static final int SPEECH_CONRTOLLER_STOP = 0X600104;
        public static final int SPEECH_CONRTOLLER_SPEED_ADD = 0X600105;
        public static final int SPEECH_CONRTOLLER_SPEED_REDUCE = 0X600106;
        public static final int SPEECH_CONRTOLLER_SLOPE_ADD = 0X600107;
        public static final int SPEECH_CONRTOLLER_SLOPE_REDUCE = 0X600108;
        public static final int SPEECH_CONRTOLLER_VOICE_ADD = 0X600109;
        public static final int SPEECH_CONRTOLLER_VOICE_REDUCE = 0X60010A;

        /**
         * 打开风扇
         */
        public static final int SPEECH_CONRTOLLER_OPEAN_FAN = 0X60010B;
        /**
         * 关闭风扇
         */
        public static final int SPEECH_CONRTOLLER_CLOSE_FAN = 0X60010C;

        /**
         * 操作app 带app的名字
         */
        public static final int SPEECH_APP_HANDLE_OPEN = 0X600201;
        public static final int SPEECH_APP_HANDLE_DOWNLOAD = 0X600202;
        public static final int SPEECH_APP_HANDLE_DELETE = 0X600203;
        public static final int SPEECH_APP_HANDLE_UPDATE = 0X600204;

        /**
         * 速度 加数值
         */
        public static final int SPEECH_CONRTOLLER_SPEED = 0X600301;
        /**
         * 坡度 加数值
         */
        public static final int SPEECH_CONRTOLLER_SLOPE = 0X600302;
        /**
         * 音量 加数值
         */
        public static final int SPEECH_CONRTOLLER_VOICE = 0X600303;
        /**
         * 音量 开
         */
        public static final int SPEECH_CONRTOLLER_VOICE_OPEAN = 0X600304;

        /**
         * 音量 关
         */
        public static final int SPEECH_CONRTOLLER_VOICE_CLOSE = 0X600305;

        /**
         * 未知的识别
         */
        public static final int SPEECH_UNKNOWN = 0X600999;


    }
}
